package JavaPractice;

public class gai_cuo_ti_7_3 {
    public static void main(String[] args) {
        Son son = new Son();
        son.method();
    }
}

class Parent {
    Parent() {
        System.out.println("Parent's Constructor without parameter");
    }

    Parent(boolean b) {
        System.out.println("Parent's Constructor with a boolean parameter");
    }

    public void method() {
        System.out.println("Parent's method()");
    }
}

class Son extends Parent {
    Son(){
        super(true);
        System.out.println("Son's Constructor without parameter");
    }

    public void method(){
        System.out.println("Son's method()");
        super.method();
    }
}